@prefix: top-menu;

.@{prefix} {

  &.ant-menu-dark.ant-menu-horizontal > .ant-menu-item,
  &.ant-menu-dark.ant-menu-horizontal .ant-menu-submenu-title {
    border-bottom: 2px solid transparent;
    background-color: transparent;

    &.ant-menu-item-selected {
      /* 选中效果 */
      border-bottom-color: @color-primary;
      margin-bottom: 2px;
      height: 64px;
      background-color: #005AA5;
      //margin-top: -2px;
    }
  }

  &-popup {
    &.ant-menu-dark .ant-menu-sub {
      background-color: #0070CC;
    }

    .ant-menu-item {
      font-size: 12px;

      &:not(.ant-menu-item-selected):hover {
        background-color: #101418;
      }
    }
  }

  &.ant-menu-dark,
  &.ant-menu-dark .ant-menu-sub {
    padding-right: 70px;
    text-align: right;
    background-color: #0070CC;
  }

  .ant-menu-item,
  .ant-menu-submenu-title {
    font-size: 12px;
  }

  &.ant-menu-dark {
    .ant-menu-submenu-title:hover,
    .ant-menu-item:not(.ant-menu-item-selected):hover,
    .ant-menu-submenu-active {
      color: #FFFFFF !important;

      .anticon {
        color: #FFFFFF;
      }
    }
  }


  .ant-menu-item:not(:last-child),
  .ant-menu-item {
    margin-bottom: 0;
    margin-top: 0;
  }

  &.ant-menu-dark .ant-menu-item-selected, .ant-menu-submenu-popup.ant-menu-dark .ant-menu-item-selected {
  }

  &- {
    &root {
      font-size: 12px;
    }
  }
}
